package com.lmt.ymcc.utils;

import com.lmt.ymcc.dto.Aggs;
import com.lmt.ymcc.result.PageList;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

//聚合结果封装
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AggrPageList extends PageList {

    private Map<String, List<Aggs>> aggrs;

    public AggrPageList(Long total, List rows, Map<String, List<Aggs>> aggrs) {
        super(total, rows);
        this.aggrs = aggrs;
    }
}